import request, { scope } from '../../utils/request';

const userUrl = scope('user');

export const findUser = (id) => {
  return request({
    url: userUrl('find'),
    method: 'post',
    data: {id}
  });
};

export const updateUser = (user) => {
  return request({
    url: userUrl('update'),
    method: 'post',
    data: user
  });
};
